﻿using System;
using System.Collections.Generic;
using System.Text;

namespace HeadFirst._06.Command._01.Controllers
{
    public class SimpleRemoteControl
    {
        ICommand slot;
        public SimpleRemoteControl() { }
        public void SetCommand(ICommand command) 
        {
            slot = command;
        }

        public void ButtonWasPressed() 
        {
            slot.Excute();
        }



    }
}
